package com.heyue.ems.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.heyue.common.core.annotation.Excel;
import com.heyue.common.core.web.domain.BaseEntity;

/**
 * 同行单（业务）对象 ems_order
 * 
 * @author WChu
 * @date 2021-07-26
 */
public class EmsOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单id标识 */
    private Long id;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private Long tmsOrderId;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private String orderType;

    /** 总金额 */
    @Excel(name = "总金额")
    private BigDecimal orderAllPrice;

    /** 传感器编号 */
    @Excel(name = "传感器编号")
    private String sensorIds;

    /** gps编号 */
    @Excel(name = "gps编号")
    private Long gpsId;

    /** 冷藏箱编号 */
    @Excel(name = "冷藏箱编号")
    private Long refrigeratorId;

    /** 揽货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "揽货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date transportTime;

    /** 客户 */
    @Excel(name = "客户")
    private Long customerUserId;

    /** 客户公司编号 */
    @Excel(name = "客户公司编号")
    private Long customerCompanyId;

    /** 客户公司 */
    @Excel(name = "客户公司")
    private String customerCompanyName;

    /** 客户地址 */
    @Excel(name = "客户地址")
    private String customerAddress;

    /** 收货确认时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "收货确认时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date customerGetTime;

    /** 发货人编号 */
    @Excel(name = "发货人编号")
    private Long sendUserId;

    /** 发货人公司编号 */
    @Excel(name = "发货人公司编号")
    private Long sendCompanyId;

    /** 发货人公司名称 */
    @Excel(name = "发货人公司名称")
    private String sendCompanyName;

    /** 发货人地址 */
    @Excel(name = "发货人地址")
    private String sendAddress;

    /** 司机电话 */
    @Excel(name = "司机电话")
    private String driverPhone;

    /** 司机姓名 */
    @Excel(name = "司机姓名")
    private String driverName;

    /** 司机编号 */
    @Excel(name = "司机编号")
    private Long driverId;

    /** 承运车辆编号 */
    @Excel(name = "承运车辆编号")
    private Long vanId;

    /** 承运车辆车牌号 */
    @Excel(name = "承运车辆车牌号")
    private String vanNumber;

    /** 承运车辆的司机姓名 */
    @Excel(name = "承运车辆的司机姓名")
    private String vanDriverName;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTmsOrderId(Long tmsOrderId) 
    {
        this.tmsOrderId = tmsOrderId;
    }

    public Long getTmsOrderId() 
    {
        return tmsOrderId;
    }
    public void setOrderType(String orderType) 
    {
        this.orderType = orderType;
    }

    public String getOrderType() 
    {
        return orderType;
    }
    public void setOrderAllPrice(BigDecimal orderAllPrice) 
    {
        this.orderAllPrice = orderAllPrice;
    }

    public BigDecimal getOrderAllPrice() 
    {
        return orderAllPrice;
    }
    public void setSensorIds(String sensorIds) 
    {
        this.sensorIds = sensorIds;
    }

    public String getSensorIds() 
    {
        return sensorIds;
    }
    public void setGpsId(Long gpsId) 
    {
        this.gpsId = gpsId;
    }

    public Long getGpsId() 
    {
        return gpsId;
    }
    public void setRefrigeratorId(Long refrigeratorId) 
    {
        this.refrigeratorId = refrigeratorId;
    }

    public Long getRefrigeratorId() 
    {
        return refrigeratorId;
    }
    public void setTransportTime(Date transportTime) 
    {
        this.transportTime = transportTime;
    }

    public Date getTransportTime() 
    {
        return transportTime;
    }
    public void setCustomerUserId(Long customerUserId) 
    {
        this.customerUserId = customerUserId;
    }

    public Long getCustomerUserId() 
    {
        return customerUserId;
    }
    public void setCustomerCompanyId(Long customerCompanyId) 
    {
        this.customerCompanyId = customerCompanyId;
    }

    public Long getCustomerCompanyId() 
    {
        return customerCompanyId;
    }
    public void setCustomerCompanyName(String customerCompanyName) 
    {
        this.customerCompanyName = customerCompanyName;
    }

    public String getCustomerCompanyName() 
    {
        return customerCompanyName;
    }
    public void setCustomerAddress(String customerAddress) 
    {
        this.customerAddress = customerAddress;
    }

    public String getCustomerAddress() 
    {
        return customerAddress;
    }
    public void setCustomerGetTime(Date customerGetTime) 
    {
        this.customerGetTime = customerGetTime;
    }

    public Date getCustomerGetTime() 
    {
        return customerGetTime;
    }
    public void setSendUserId(Long sendUserId) 
    {
        this.sendUserId = sendUserId;
    }

    public Long getSendUserId() 
    {
        return sendUserId;
    }
    public void setSendCompanyId(Long sendCompanyId) 
    {
        this.sendCompanyId = sendCompanyId;
    }

    public Long getSendCompanyId() 
    {
        return sendCompanyId;
    }
    public void setSendCompanyName(String sendCompanyName) 
    {
        this.sendCompanyName = sendCompanyName;
    }

    public String getSendCompanyName() 
    {
        return sendCompanyName;
    }
    public void setSendAddress(String sendAddress) 
    {
        this.sendAddress = sendAddress;
    }

    public String getSendAddress() 
    {
        return sendAddress;
    }
    public void setDriverPhone(String driverPhone) 
    {
        this.driverPhone = driverPhone;
    }

    public String getDriverPhone() 
    {
        return driverPhone;
    }
    public void setDriverName(String driverName) 
    {
        this.driverName = driverName;
    }

    public String getDriverName() 
    {
        return driverName;
    }
    public void setDriverId(Long driverId) 
    {
        this.driverId = driverId;
    }

    public Long getDriverId() 
    {
        return driverId;
    }
    public void setVanId(Long vanId) 
    {
        this.vanId = vanId;
    }

    public Long getVanId() 
    {
        return vanId;
    }
    public void setVanNumber(String vanNumber) 
    {
        this.vanNumber = vanNumber;
    }

    public String getVanNumber() 
    {
        return vanNumber;
    }
    public void setVanDriverName(String vanDriverName) 
    {
        this.vanDriverName = vanDriverName;
    }

    public String getVanDriverName() 
    {
        return vanDriverName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("tmsOrderId", getTmsOrderId())
            .append("orderType", getOrderType())
            .append("orderAllPrice", getOrderAllPrice())
            .append("sensorIds", getSensorIds())
            .append("gpsId", getGpsId())
            .append("refrigeratorId", getRefrigeratorId())
            .append("transportTime", getTransportTime())
            .append("customerUserId", getCustomerUserId())
            .append("customerCompanyId", getCustomerCompanyId())
            .append("customerCompanyName", getCustomerCompanyName())
            .append("customerAddress", getCustomerAddress())
            .append("customerGetTime", getCustomerGetTime())
            .append("sendUserId", getSendUserId())
            .append("sendCompanyId", getSendCompanyId())
            .append("sendCompanyName", getSendCompanyName())
            .append("sendAddress", getSendAddress())
            .append("driverPhone", getDriverPhone())
            .append("driverName", getDriverName())
            .append("driverId", getDriverId())
            .append("vanId", getVanId())
            .append("vanNumber", getVanNumber())
            .append("vanDriverName", getVanDriverName())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
